<template>
    <p @click="add">{{ store.state.counter }}</p>
    <HelloWorld msg="Hello Vue 3" />
</template>

<script setup>
import { useStore } from 'vuex';
import HelloWorld from '../components/HelloWorld.vue'
// import request from 'utils/request.js'
// const { data } = await request("/getUser")
// console.log(data);
const store = useStore()
console.log(store);

const add = () => {
    store.commit('add')
}
</script>

<style lang="scss" scoped>
</style>